namespace ORS.OrderRobot.ServiceContracts.Dtos
{
    /// <summary>
    /// 管理员DTO
    /// </summary>
    public class AdminDto
    {
        public int Id { get; set; }
        public string Username { get; set; } = string.Empty;
        public string Role { get; set; } = string.Empty;
        public DateTime? LastLoginTime { get; set; }
        public DateTime CreatedTime { get; set; }
    }

    /// <summary>
    /// 管理员登录请求
    /// </summary>
    public class AdminLoginRequest
    {
        public string Username { get; set; } = string.Empty;
        public string Password { get; set; } = string.Empty;
    }

    /// <summary>
    /// 管理员登录结果
    /// </summary>
    public class AdminLoginResult
    {
        public bool Success { get; set; }
        public string Message { get; set; } = string.Empty;
        public string Token { get; set; } = string.Empty;
        public AdminDto? Admin { get; set; }
    }

    /// <summary>
    /// 管理员创建请求
    /// </summary>
    public class AdminCreateRequest
    {
        public string Username { get; set; } = string.Empty;
        public string Password { get; set; } = string.Empty;
        public string Role { get; set; } = "User";
    }

    /// <summary>
    /// 管理员创建结果
    /// </summary>
    public class AdminCreateResult
    {
        public bool Success { get; set; }
        public string Message { get; set; } = string.Empty;
        public AdminDto? Admin { get; set; }
    }
} 